package cn.jwcat.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 房屋
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("s_room")
public class Room {

	/**
	 * id
	 */
	@TableId(value = "room_id", type = IdType.AUTO)
	private Integer roomId;

	/**
	 * 房屋名称
	 */
	@TableField("name")
	private Integer name;

	/**
	 * 房屋状态
	 */
	@TableField("status")
	private Boolean status;

	/**
	 * 消毒状态
	 */
	@TableField("disinfection")
	private Boolean disinfection;

	/**
	 * area表的id外键
	 */
	@TableField("area_id")
	private Integer areaId;

	/**
	 * 更新时间
	 */
	@TableField(value = "update_time", fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	/**
	 * 备注
	 */
	@TableField("room_remark")
	private String roomRemark;
}
